Eclipse Platform
Pre-release 3.0

org.eclipse.ui.keys
Class KeyFormatterFactory

java.lang.Object
  extended byorg.eclipse.ui.keys.KeyFormatterFactory

public final class KeyFormatterFactory
extends Object

A cache for formatters. It keeps a bunch of formatters around for use within the application.

Since:
3.0

Method Summary
static IKeyFormatter getCompactKeyFormatter()
          Provides an instance of CompactKeyFormatter.
static IKeyFormatter getDefault()
          An accessor for the current default key formatter.
static IKeyFormatter getEmacsKeyFormatter()
          Provides an instance of XemacsKeyFormatter.
static IKeyFormatter getFormalKeyFormatter()
          Provides an instance of FormalKeyFormatter.
static void setDefault(IKeyFormatter defaultKeyFormatter)
          Sets the default key formatter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCompactKeyFormatter

public static final IKeyFormatter getCompactKeyFormatter()
Provides an instance of CompactKeyFormatter.

Returns:
The compact formatter; never null.

getDefault

public static IKeyFormatter getDefault()
An accessor for the current default key formatter.

Returns:
The default formatter; never null.

getEmacsKeyFormatter

public static IKeyFormatter getEmacsKeyFormatter()
Provides an instance of XemacsKeyFormatter.

Returns:
The Xemacs formatter; never null.

getFormalKeyFormatter

public static IKeyFormatter getFormalKeyFormatter()
Provides an instance of FormalKeyFormatter.

Returns:
The formal formatter; never null.

setDefault

public static void setDefault(IKeyFormatter defaultKeyFormatter)
Sets the default key formatter.


Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.